﻿@model Pku.BookStore.Model.OrderFormModel
@{
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
    ViewBag.Title = "订单详情-后台管理";
}
<link href="/Content/user.self.css" rel="stylesheet" type="text/css" />
<script src="/Scripts/jsAddress.js" type="text/javascript"></script>
<div class="right">
    <div class="o-mt">
        <h2>
            订单详情</h2>
    </div>
    <div class="m" id="baseinfo">
        <div class="mc">
            <div class="i-m">
                <div class="i-mc">
                    @using (Html.BeginForm())
                    {
                        <div class="form">
                            <div class="item">
                                <span class="label">订单号：</span>
                                <div class="fl">
                                    <strong class="username">@Model.OrderID</strong>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">收件人：</span>
                                <div class="fl">
                                    <div>
                                        @Model.Recipients
                                    </div>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">地址：</span>
                                <div class="fl">
                                    <div>
                                        @Model.Address
                                    </div>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">联系电话：</span>
                                <div class="fl">
                                    <div>
                                        @Model.Phone
                                    </div>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">下单时间：</span>
                                <div class="fl">
                                    <div>
                                        @Model.OrderData
                                    </div>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">订单状态：</span>
                                <div class="fl">
                                    <div>
                                        @Html.DropDownList("OrderStatus", (List<SelectListItem>)ViewBag.statusList, Pku.BookStore.Utility.EnumHelper.GetEnumDescription((Pku.BookStore.Utility.EnumUtility.OrderStatus)Model.OrderStatus))<input id="submitBtn" type="image" src="@Url.Content("~/images/btn_sub.gif")" />
                                    </div>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <table cellspacing="0" cellpadding="0" border="0" width="100%" style="margin-left: 130px">
                                <tbody>
                                    <tr>
                                        <th width="90">
                                            商品编号
                                        </th>
                                        <th width="300">
                                            商品名称
                                        </th>
                                        <th width="90" style="text-align: right">
                                            购买价
                                        </th>
                                        <th width="90" style="text-align: right">
                                            商品数量
                                        </th>
                                    </tr>
                                    @{
                        foreach (var item in Model.OrderList)
                        {
                                        <tr style="height: 30px">
                                            <td>
                                                @item.BookID
                                            </td>
                                            <td>
                                                <a href="/Product/Detail/@item.BookID" target=_blank>@item.BookName</a>
                                            </td>
                                            <td style="text-align: right">
                                                <div class="ftx-03">
                                                    ￥@item.UnitPrice</div>
                                            </td>
                                            <td style="text-align: right">
                                                <div class="ftx-03">
                                                    ￥@item.UnitPrice</div>
                                            </td>
                                        </tr>
                        }
                                    }
                                </tbody>
                            </table>
                            <div class="item" style="margin-top: 20px">
                                <span class="label">&nbsp;</span>
                                <div class="fl">
                                    @Html.TextBox("Act", "E", new { @style = "display:none" })
                                    <input id="btn_back" type="image" src="@Url.Content("~/images/btn_back.gif")"  onclick="javascript:history.go(-1);" />
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">&nbsp;</span>
                                <div class="fl">
                                    @Html.ValidationMessage("Info")
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>
